﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CodeCounsel.SharePoint.RibbonDesigner.Model;
using System.IO;
using System.Xml.Linq;

namespace testapp
{
    class Program
    {
        static void Main(string[] args)
        {
            XDocument d = XDocument.Load(@"C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\GLOBAL\XML\CMDUI.XML");
            DomainElement model = DomainModelFactory.CreateModel(d.Root, DomainModelSource.Global);
            Console.WriteLine(model.ToXml());
        }
    }
}
